﻿using Furion.DataValidation;
using System.ComponentModel.DataAnnotations;

namespace Infrastructure.Model.Api
{
    /// <summary>
    /// <c>[请求参数]</c>
    /// 基本更新参数
    /// </summary>
    public class UpdateBase
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        [DataValidation(ValidationTypes.Numeric)]
        public long Id { get; set; }
    }
}
